package com.phone.json;

import com.phone.utils.TextUtil;

import java.util.Date;

/**
 * Created by tisen on 2017/8/17.
 */
public class JsonUser {
    private String id;
    private String username;
    private String avatar;
    private int point;
    private float money;
    private int round;

    public JsonUser(com.phone.entity.User2 user) {
        this.id = user.getId();
        if (user.getNickname() == null) {
            this.username = "null";
        } else {
            this.username = user.getNickname();
        }
        this.avatar = TextUtil.phoneEncryption(user.getAvatar());
        this.point = user.getPoint();
        this.money = user.getMoney();
        this.round = user.getRound();
    }
}
